import { createVnode } from "../vnode";
import {Fragment} from '../vnode'

export function renderSlots(slots, name, arg) {
  const slot = slots[name]
  if(slot) {
    if(typeof slot === 'function') {
      return createVnode(Fragment, {}, slot(arg));
    }
  } 
}
 